package com.wjw.controller;

import com.wjw.pojo.Robot;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/robot")
public class RobotController {
    @Autowired
    private Robot robot;

    @GetMapping("/say")
    public Robot sayHello(){
        return robot;
    }
}
